
<?php get_header(); ?>

	<!-- site-content -->
	<div class="site-content clearfix">
		<div class="main-column">
			<div class="main-content">
				<?php if (have_posts()) : ?>
					<h2><?php 
						if (is_category()) {
							single_cat_title();
						} elseif (is_tag()) {
							single_tag_title();
						} elseif (is_author()) {
							the_post();
							echo 'Author Archives:' . get_the_author();
							rewind_posts();
						} elseif (is_day()) {
							echo 'Daily Archive:' . get_the_date();
						} elseif (is_month()) {
							echo 'Monthly Archive:' . get_the_date('F Y');
						} elseif (is_year()) {
							echo 'Yearly Archive:' . get_the_date('Y');
						} else {
							echo 'Archives:';
						}
					 ?></h2>
					<?php
					while (have_posts()) : the_post();
					
					get_template_part('content-duanrecord');
						
					endwhile;
					else :
						echo '<p>no content found</p>';
					endif; ?>
				</div><!-- main-column -->
			</div>
		<?php get_sidebar(); ?>
	</div>

<?php get_footer(); ?>
